﻿@model IEnumerable<Site3AI.Models.CmsCatalog>

@{
    ViewBag.Title = "用户门户知识库分类";
}




<table class="table table-bordered table-hover table-striped">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Title)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SortIdx)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TypeFlag)
        </th>
        <th>@Html.DisplayNameFor(model => model.Hospitals)</th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(v => item.ID)
            </td>
            <td>
                @Html.DisplayFor(v => item.ParentCmsCatalog.Title)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Title)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.SortIdx)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.TypeFlag)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Hospitals)
            </td>
            <td>
                @Html.ActionLink("修改", "EditCata", new { id = item.ID }) |
            @Html.ActionLink("删除", "DeleteCata", new { id = item.ID }, new { onclick = "return confirm('是否确认删除？');" })
            </td>
        </tr>
    }

</table>
<p>
    @Html.ActionLink("创建", "EditCata", null, new { @class = "btn btn-danger" })
</p>
